package com.imooc.service;

import com.imooc.dataobject.ProductCategory;

import java.util.List;

/**
 * ProductCategory Service
 * @author liuhuan
 * @date 2018年7月5日 09:34:55
 * @description
 */
public interface ProductCategoryService {

    /**
     * find one ProductCategory
     * @param id
     * @return
     */
    ProductCategory findOne(Integer id);

    /**
     * find all ProductCategory
     * @return
     */
    List<ProductCategory> findAll();

    /**
     * find ProductCategory by category type
     * @param categoryTypeList
     * @return
     */
    List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);

    /**
     * save productCategory
     * @param productCategory
     * @return
     */
    ProductCategory save(ProductCategory productCategory);
}
